﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Drive_Caffeine {
    class SimpleDrive {

        public SimpleDrive(DriveInfo drive) {
            this.DriveRoot = drive.RootDirectory.ToString();
            this.DriveLabel = drive.VolumeLabel;
        }

        private string DriveRoot {
            get;
            set;
        }

        private string DriveLabel {
            get;
            set;
        }

        public string RootPath {
            get {
                return DriveRoot;
            }
        }

        public override string ToString() {
            if (this.DriveLabel == "") {
                this.DriveLabel = "Local Disk";
            }
            return String.Format(String.Format("{0} - {1}", this.DriveRoot, this.DriveLabel));
        }
    }
}
